
{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<div class="form-div">
  <form action="javascript:searchMshop()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    旅行社名称：<input type="text" name="keyword" size="30" />
    导游名称：<input type="text" name="user_pname" size="30" />
    用户名称：<input type="text" name="user_name" size="30" />
    <input type="submit" value="{$lang.button_search}" class="button" />
  </form>
</div>

<form method="post" action="mshop_payment.php" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<!-- start mshop list -->
<div class="list-div" id="listDiv">
{/if}

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>
      <!--  <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox" />-->
        <a href="javascript:listTable.sort('g_id'); ">{$lang.g_id}</a>{$sort_g_id}</th>
      <th>旅行社名称</th>
      <th>导游名称</th>
      <th>用户名称</th>
      <th>{$lang.ctime}</th>
      <!--<th>{$lang.handler}</th>-->
    </tr>

    {foreach from=$users_mshop item=ump}
    <tr>
      <td align="left"><!--<input value="{$payment.g_id}" name="checkboxes[]" type="checkbox">-->{$ump.g_id}</td>
      <td align="center">{$ump.mshop_name|escape:html}</td>
      <td align="center">{$ump.user_pname}</td> 
       <td align="center">{$ump.user_name}</td>     
   
       <td align="center">{$ump.ctime}</td>
<!--      <td align="center">
        <a href="mshop_payment.php?act=edit&amp;id={$payment.g_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
        <a href="javascript:;" onclick="listTable.remove({$payment.g_id},'{$lang.drop_confirm}')" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a>     
         </td>-->
    </tr>
    {foreachelse}
    <tr><td class="no-records" colspan="13">{$lang.no_records}</td></tr>
    {/foreach}
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td>
      <input type="hidden" name="act" value="batch" /></td>
      <td align="right">{include file="page.htm"}</td>
    </tr>
  </table>

{if $full_page}
</div>
<!-- end mshop list -->
</form>

<script type="text/javascript" language="JavaScript">
<!--
  listTable.recordCount = {$record_count};
  listTable.pageCount = {$page_count};

  {foreach from=$filter item=item key=key}
  listTable.filter.{$key} = '{$item}';
  {/foreach}

  {literal}
  onload = function()
  {
    document.forms['searchForm'].elements['keyword'].focus();

    startCheckOrder();
  }

  /**
   * 搜索团购活动
   */
  function searchMshop()
  {
    var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
    listTable.filter['keyword'] = keyword;
	var user_name = Utils.trim(document.forms['searchForm'].elements['user_name'].value);
    listTable.filter['user_name'] = user_name;
	var user_pname = Utils.trim(document.forms['searchForm'].elements['user_pname'].value);
    listTable.filter['user_pname'] = user_pname;
    listTable.filter['page'] = 1;
    listTable.loadList("users_mshop");
  }
  {/literal}
//-->
</script>

{include file="pagefooter.htm"}
{/if}